package com.yl.project.lvyou.info.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yl.framework.aspectj.lang.annotation.Excel;
import javax.persistence.*;
import com.yl.framework.web.domain.BaseEntity;

/**
 * 旅游资讯信息对象 spot_info
 * 
 * @author yl
 * @date 2025-03-18
 */
@Table(name="spot_info")
public class SpotInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /** 旅游资讯标题 */
    @Excel(name = "旅游资讯标题")

    @Column(name = "title")
    private String title;
    /** 资讯首页大图 */
    @Excel(name = "资讯首页大图")

    @Column(name = "info_pic")
    private String infoPic;
    /** 旅游资讯内容 */
    @Column(name = "content")
    private String content;
    /** 访问量 */
    @Excel(name = "访问量")

    @Column(name = "visit_count")
    private Long visitCount;
    /** 点赞数 */
    @Excel(name = "点赞数")

    @Column(name = "like_count")
    private Long likeCount;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setInfoPic(String infoPic) 
    {
        this.infoPic = infoPic;
    }

    public String getInfoPic() 
    {
        return infoPic;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setVisitCount(Long visitCount) 
    {
        this.visitCount = visitCount;
    }

    public Long getVisitCount() 
    {
        return visitCount;
    }
    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("infoPic", getInfoPic())
            .append("content", getContent())
            .append("visitCount", getVisitCount())
            .append("likeCount", getLikeCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
